{% extends "myadmin/base.html" %}


{% block mainbody %}
    <h2>
        商品类别信息浏览
    </h2>
    <table class="table table-bordered table-striped">
        <thead>
        <tr>
            <th> id </th>
            <th> 类别名称</th>
            <th> 父类别id</th>
            <th> 路径</th>
            <th> 操作</th>
        </tr>
        </thead>
        <tbody>
        {% for vo in typesList %}
            <tr>
                <td>{{ vo.id }}</td>
                <td>{{ vo.pname }}|--{{ vo.name}}</td>
                <td>{{ vo.pid }} </td>
                <td>{{ vo.path }} </td>
                <td>
                    <a href="{% url 'myadmin_type_add' vo.id %}" class="view-link">添加子类别</a>
                    <a href="{% url 'myadmin_type_edit' vo.id %}" class="view-link">编辑</a>
                    <a href="{% url 'myadmin_type_del' vo.id %}" class="view-link">删除</a>
                </td>
            </tr>
        {% endfor %}

        </tbody>
    </table>
    <div class="pagination">
        <ul>
            <li class="disabled">
                <a href="#">&laquo;</a>
            </li>
            <li class="active">
                <a href="#">1</a>
            </li>
            <li>
                <a href="#">2</a>
            </li>
            <li>
                <a href="#">3</a>
            </li>
            <li>
                <a href="#">4</a>
            </li>
            <li>
                <a href="#">&raquo;</a>
            </li>
        </ul>
    </div>
    </div>

{% endblock %}